function [q]=InnerProduct(a,b)
%INNERPEODUCT:calculate inner product of vector a and b,the result is q;

q=sum(a.*b);